package com.mobjam.workingtitleforagame.UnitTests;

import com.mobjam.workingtitleforagame.MapObject;
import com.mobjam.workingtitleforagame.MapRegion;
import com.mobjam.workingtitleforagame.MapTile;
import com.mobjam.workingtitleforagame.Character;

import android.test.AndroidTestCase;

public class MapRegionTest extends AndroidTestCase {
	MapRegion mapRegion;
	
	public void setUp() throws Exception {
		super.setUp();
		MapObject.loadBitmaps(getContext());
		MapTile.loadBitmaps(getContext());
		mapRegion = new MapRegion(getContext(), 5, 5, 8, 8 );
	}

	public void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testMoveCharacter()
	{
		Character character = Character.getInstance();
		mapRegion.addChildMapObject( character, 0, 0, true );
		assertTrue(mapRegion.moveObjectEast(character));
	}
}